package org.openwebtop.sunshine.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity(name = "code_repository")
public class CodeRepository {
	@Id
	@Column
	private String name;

	@Column
	private String location;

	@Column
	private String encoding;

	@Column
	private String username;

	@Column
	private String password;

	@Column
	private String description;

	@ManyToOne(targetEntity = ReviewProject.class)
	@JoinColumn(name = "review_project_name")
	private ReviewProject reviewProject;

	public CodeRepository() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getEncoding() {
		return encoding;
	}

	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public ReviewProject getReviewProject() {
		return reviewProject;
	}

	public void setReviewProject(ReviewProject reviewProject) {
		this.reviewProject = reviewProject;
	}

}
